//
//  ByCoreLogModel.m
//  beibei_ios
//
//  Created by pro on 16/6/16.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import "ByCoreLogModel.h"

#import "FastCoder.h"
@implementation ByCoreLogModel

- (instancetype)init {
    
    if (self = [super init]) {
        // 设置默认数据
        __id = 0;
        _time = 0;
        _func = @"";
        _line = 0;
        _content = nil;
        _context = nil;
    }
    
    return self;
}

- (NSString *)description {
    
    NSDictionary *info = @{@"id":@(self._id),
                           @"time":@(self.time),
                           @"func":self.func,
                           @"line":@(self.line),
                           @"content":[FastCoder objectWithData:self.content],
                           @"context":[FastCoder objectWithData:self.context]};
    return [NSString stringWithFormat:@"<%@, %@>", [self class], info];
}

@end
